package myProject.vistas {

	import com.googlecode.astoolkit.FrankyApi;
	
	import flash.events.MouseEvent;
	
	import myProject.menuSWC;
	import myProject.vistas.secciones.Sections;


	public class LateralMenu extends menuSWC {

		public function LateralMenu() {
			super();
			
			this.home_btn.addEventListener(MouseEvent.CLICK, homeClick);
			this.photos_btn.addEventListener(MouseEvent.CLICK, photosClick);
			this.spring_btn.addEventListener(MouseEvent.CLICK, springClick);
			this.summer_btn.addEventListener(MouseEvent.CLICK, summerClick);
			this.autumn_btn.addEventListener(MouseEvent.CLICK, autumnClick);
			this.winter_btn.addEventListener(MouseEvent.CLICK, winterClick);
			this.contact_btn.addEventListener(MouseEvent.CLICK, contactClick);
		}

		//
		private function homeClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.HOME);
		}
		
		//
		private function photosClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.PHOTOS);
		}

		//
		private function springClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.PHOTOS_SPRING);
		}

		//
		private function summerClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.PHOTOS_SUMMER);
		}

		//
		private function autumnClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.PHOTOS_AUTUMN);
		}

		//
		private function winterClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.PHOTOS_WINTER);
		}

		//
		private function contactClick(e:MouseEvent):void {
			FrankyApi.goto(Sections.CONTACT);
		}




	}
}